
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>题目汇总] · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="数仓基础.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    Hadoop总结
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../chapter1/hadoopBase.html">
            
                <a href="../chapter1/hadoopBase.html">
            
                    
                    Hadoop基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../chapter1/Hadoop性能优化.html">
            
                <a href="../chapter1/Hadoop性能优化.html">
            
                    
                    Hadoop性能优化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../chapter1/Hadoop故障处理.html">
            
                <a href="../chapter1/Hadoop故障处理.html">
            
                    
                    Hadoop故障处理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    Flume总结
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../chapter2/FlumeBase.html">
            
                <a href="../chapter2/FlumeBase.html">
            
                    
                    Flume基础
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    Hive总结
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../chapter4/HiveBase.html">
            
                <a href="../chapter4/HiveBase.html">
            
                    
                    Hive基础
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    数仓总结
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="数仓基础.html">
            
                <a href="数仓基础.html">
            
                    
                    数仓理论
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5.2" data-path="数仓面试题.html">
            
                <a href="数仓面试题.html">
            
                    
                    题目汇总]
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >题目汇总]</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x9762;&#x8BD5;&#x9898;">&#x9762;&#x8BD5;&#x9898;</h1>
<h3 id="&#x6BCF;&#x5929;&#x5546;&#x54C1;&#x7684;-pv&#x3001;uv">&#x6BCF;&#x5929;&#x5546;&#x54C1;&#x7684; PV&#x3001;UV</h3>
<p>ODS &#x5C42;&#x5230; ADS &#x5C42;&#x7684;&#x6D41;&#x5411;&#x3002;</p>
<p>ODS &#x5C42;&#xFF0C; &#x6570;&#x636E;&#x683C;&#x5F0F;&#x5982;&#x4E0B;&#xFF1A;</p>
<p>PV &#x548C; UV &#x7684;&#x6570;&#x636E;&#x4E3B;&#x8981;&#x662F;&#x5728;&#x7528;&#x6237;&#x542F;&#x52A8;&#x65E5;&#x5FD7;&#x4E2D;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x7528;&#x6237;&#x542F;&#x52A8;&#x4E86;APP &#x6216;&#x8005;&#x8BBF;&#x95EE;&#x4E86;&#x7F51;&#x9875;&#x5C31;&#x7B97;&#x662F;&#x4E00;&#x6761;&#x8BB0;&#x5F55;&#x3002;</p>
<p>&#x9996;&#x5148; ODS &#x5C42;&#x76F4;&#x63A5;&#x5C06;&#x5B58;&#x50A8;&#x7528;&#x6237;&#x7684;&#x542F;&#x52A8;&#x65E5;&#x5FD7;&#x6570;&#x636E;&#xFF0C;&#x5728;&#x4E4B;&#x524D;&#x4F1A;&#x5BF9;&#x8FD9;&#x4E9B;&#x6570;&#x636E;&#x8FDB;&#x884C;&#x7A7A;&#x503C;&#x7684;&#x8FC7;&#x6EE4;&#x3002;</p>
<p>&#x7136;&#x540E;&#x5230;&#x4E86; DWD &#x5C42;&#xFF0C;&#x8FD9;&#x4E00;&#x5C42;&#x4F1A;&#x5BF9;&#x542F;&#x52A8;&#x65E5;&#x5FD7;&#x5EFA;&#x8868;&#xFF0C;dwd_start_log &#x8868;&#xFF0C;&#x6211;&#x4EEC;&#x6570;&#x636E;&#x662F;&#x91C7;&#x7528;&#x7684; parquet &#x5B58;&#x50A8;&#xFF0C;&#x8FD9;&#x4E2A;&#x5EFA;&#x8868;&#x5C31;&#x662F;&#x5C06;&#x65E5;&#x5FD7;&#x7684;Json&#x7684;key&#x8F6C;&#x4E3A;&#x8868;&#x4E2D;&#x7684;&#x5B57;&#x6BB5;&#x3002;</p>
<p>&#x7136;&#x540E;&#x5C31;&#x662F;&#x4ECE;ODS &#x5C42;&#x5BFC;&#x5165;&#x6570;&#x636E;&#x5230; DWD &#x5C42;&#x7684;&#x8FD9;&#x4E2A; dwd_start_log &#x8868;&#x4E2D;&#x3002;</p>
<p>&#x7136;&#x540E;&#x518D; DWS &#x5C42;&#x5EFA;&#x8868;&#xFF0C;&#x8FD9;&#x4E2A;&#x8868;&#x4E2D;&#x505A;&#x4E86;&#x4E00;&#x6B21;&#x805A;&#x5408;&#x64CD;&#x4F5C;&#xFF0C;&#x5C31;&#x662F;&#x6839;&#x636E;&#x7528;&#x6237;id&#x8FDB;&#x884C; group by &#xFF0C; &#x7136;&#x540E;&#x53EF;&#x4EE5;&#x5BF9;&#x7528;&#x6237;&#x8BBF;&#x95EE;&#x6B21;&#x6570;&#x8FDB;&#x884C; count() &#x64CD;&#x4F5C;&#x3002;</p>
<p>&#x6700;&#x540E;&#x518D; ADS &#x5C42;&#xFF0C;&#x505A; UV &#x7684;&#x7EDF;&#x8BA1;&#xFF0C;</p>
<p>SQL&#xFF08;&#x6392;&#x9664;&#x5176;&#x4ED6;&#x5B57;&#x6BB5;&#xFF09;</p>
<pre><code class="lang-sql"><span class="hljs-keyword">SELECT</span> uv <span class="hljs-keyword">FROM</span> uv_topic <span class="hljs-keyword">where</span> <span class="hljs-keyword">day</span> = <span class="hljs-string">&apos;&#x4ECA;&#x5929;&apos;</span> , <span class="hljs-keyword">GROUP</span> <span class="hljs-keyword">BY</span>
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="数仓基础.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 数仓理论">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"题目汇总]","level":"1.5.2","depth":2,"previous":{"title":"数仓理论","level":"1.5.1","depth":2,"path":"chapter5/数仓基础.md","ref":"chapter5/数仓基础.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"chapter5/数仓面试题.md","mtime":"2021-03-30T00:41:10.171Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-03-30T00:41:16.128Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

